<!DOCTYPE html>
<html>
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="content-type" />

        <title><?php echo $mainframe->translate('Page Title'); ?></title>

        <link rel="shortcut icon" href="<?php echo $options->tpl_path; ?>/favicon.ico" />
        <link media="all" rel="stylesheet" href="<?php echo $options->tpl_path; ?>/assets/css/style.css" />
        <link media="all" rel="stylesheet" href="<?php echo $options->tpl_path; ?>/assets/css/jquery-ui.css" />

        <meta content="<?php echo $mainframe->translate('Meta Desc'); ?>" name="description" />
        <meta content="<?php echo $mainframe->translate('Meta Keys'); ?>" name="keys" />
        
        <script src="<?php echo $options->tpl_path; ?>/assets/js/jquery.js" type="text/javascript"></script>
        <script src="<?php echo $options->tpl_path; ?>/assets/js/jquery-ui.js" type="text/javascript"></script>
        <script src="<?php echo $options->tpl_path; ?>/assets/js/custom.js" type="text/javascript"></script>
    </head>
    <body>
        <div id="wrapper">
            <?php 
                if ($db->_lastResult == -1) echo $db->error();
                else {
            ?>
                <div id="top">
                </div>
                <h1><?php echo $mainframe->translate('Page Title'); ?></h1>
                <div id="content">
                    <div id="tabs">
                        <ul>
                            <li><a href="#create"><h2><?php echo $mainframe->translate('Create Short Link'); ?></h2></a></li>
                            <li><a href="#signup"><h2><?php echo $mainframe->translate('Sign Up on Site'); ?></h2></a></li>
                            <li><a href="#register"><h2><?php echo $mainframe->translate('Register on Site'); ?></h2></a></li>
                        </ul>
                        <div id="create" class="tabcontent">
                            <p class="alert ui-state-error ui-corner-all hidden">
				<span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
                                <?php echo $mainframe->translate('Please fill out the required fields'); ?>
                            </p>
                            <p>
                                <label for="link"><?php echo $mainframe->translate('Your Link'); ?>:</label>
                                <input type="text" name="link" class="inputbox" />
                            </p>
                            <p>
                                <label for="alias"><?php echo $mainframe->translate('Alias'); ?>:</label>
                                <input type="text" name="alias" class="inputbox" />
                            </p>
                            <p>
                                <label for="create">&nbsp;</label>
                                <input type="button" name="create" class="button" value="<?php echo $mainframe->translate('Go'); ?>" />
                            </p>
                            <p id="createLink" class="ui-state-highlight ui-corner-all hidden" style="margin: 12px 0; padding: 12px;">
                                <span class="ui-icon ui-icon-info" style="float: left; margin-right: 12px;"></span>
                                <span class="msg"></span>
                            </p>
                        </div>
                        <div id="signup" class="tabcontent">
                            <p class="alert ui-state-error ui-corner-all hidden">
				<span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
                                <?php echo $mainframe->translate('Please fill out the required fields'); ?>
                            </p>
                            <p>
                                <label for="link"><?php echo $mainframe->translate('Email'); ?>:</label>
                                <input type="text" name="email" class="inputbox" />
                            </p>
                            <p>
                                <label for="link"><?php echo $mainframe->translate('Password'); ?>:</label>
                                <input type="password" name="pass" class="inputbox" />
                            </p>
                            <p>
                                <label for="signup">&nbsp;</label>
                                <input type="button" name="signup" class="button" value="<?php echo $mainframe->translate('Sign Up'); ?>" />
                                <a name="forgot"><?php echo $mainframe->translate('Forgot Password'); ?>?</a>
                            </p>
                            <p id="signupLink" class="ui-state-highlight ui-corner-all hidden" style="margin: 12px 0; padding: 12px;">
                                <span class="ui-icon ui-icon-info" style="float: left; margin-right: 12px;"></span>
                                <span class="msg"></span>
                            </p>
                        </div>
                        <div id="register" class="tabcontent">
                            <p class="alert ui-state-error ui-corner-all hidden">
				<span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
                                <?php echo $mainframe->translate('Please fill out the required fields'); ?>
                            </p>
                            <p>
                                <label for="link"><?php echo $mainframe->translate('Email'); ?>:</label>
                                <input type="text" name="email" class="inputbox" />
                            </p>
                            <p>
                                <label for="link"><?php echo $mainframe->translate('Password'); ?>:</label>
                                <input type="password" name="pass" class="inputbox" />
                            </p>
                            <p>
                                <label for="register">&nbsp;</label>
                                <input type="button" name="register" class="button" value="<?php echo $mainframe->translate('Register'); ?>" />
                            </p>
                            <p id="registerLink" class="hidden ui-state-highlight ui-corner-all" style="margin: 12px 0; padding: 12px;">
                                <span class="ui-icon ui-icon-info" style="float: left; margin-right: 12px;"></span>
                                <span class="msg"></span>
                            </p>
                        </div>
                    </div>
                </div>
                <div id="footer">
                    <?php echo $mainframe->translate('Created by'); ?> <a href="http://marco-manti.jino.ru">marco_manti&reg;</a> 2006-2011.
                </div>
            <?php
                }
            ?>
        </div>
    </body>
</html>